<template>
  <div id="app">
    <el-contaiter>
      <el-header style="background-color: #4c535a">
        <img src="@/assets/logo.png" alt="" style="width: 40px;position: relative;top: 10px;">
        <span style=" font-size: 20px; margin-left: 15px; color: white">学生信息管理系统</span>
      </el-header>
    </el-contaiter>
    <el-contaiter>
      <el-aside style="background-color: #545c64;overflow: hidden; min-height: 100vh;width: 250px; float: left">
        <el-menu
            default-active="$router.path" router
            class="el-menu-vertical-demo"
            background-color="#545c64"
            text-color="#fff"
            active-text-color="#ffd04b">
          <el-menu-item index="/">
            <i class="el-icon-menu"></i>
            <span slot="title">系统首页</span>
          </el-menu-item>
          <el-submenu index="2">
            <template slot="title">
              <i class="el-icon-location"></i>
              <span>信息管理</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="/admin">管理员信息</el-menu-item>
              <el-menu-item index="2-2">用户信息</el-menu-item>
            </el-menu-item-group>
          </el-submenu>
          <el-submenu index="3">
            <template slot="title">
              <i class="el-icon-location"></i>
              <span>信息管理</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="3-1">用户信息</el-menu-item>
              <el-menu-item index="3-2">用户信息</el-menu-item>
            </el-menu-item-group>
          </el-submenu>
        </el-menu>
      </el-aside>
      <el-main>
        <router-view/>
      </el-main>
    </el-contaiter>
  </div>
</template>


<script lang="ts">
</script>

<style>
.el-menu{
  border-right: none !important;
}
</style>